package com.arvato.wxwork.bean.bean_vo.member;

import java.util.Date;
import java.util.List;

import com.arvato.common.util.DateFormatUtil;
import com.arvato.wxwork.bean.bean_dto.WxworkFollowUserDto;
/**
 * 企业微信联系人信息详情
 * @author ZHAN655
 *
 */
public class WxworkExternalInfoVo {
	/**
	 * 主键ID
	 */
    private String externalId;
    /**
     * 企业ID
     */
    private String corpid;
    /**
     * 品牌名称
     */
    private String brand;
    /**
     * 会员ID
     */
    private String memberId;
    /**
     * 会员类型
     */
    private String memberType;
    /**
     * 用户相对于企业微信的userid
     */
    private String wxExternalUserid;
    /**
     * 姓名
     */
    private String name;
    /**
     * 职位
     */
    private String position;
    /**
     * 头像
     */
    private String avatar;
    /**
     * 企业简称
     */
    private String corpName;
    /**
     * 企业全称
     */
    private String corpFullName;
    /**
     * 类型：1：微信用户 2：企业用户
     */
    private Integer type;
    /**
     * 性别
     */
    private Integer gender;
    /**
     * unionid
     */
    private String unionid;
    /**
     * 其他信息
     */
    private String externalProfile;
    /**
     * 和该外部联系人有好友关系的员工信息
     */
    private String followUser;
    /**
     * 该外部联系人的员工好友列表
     */
    private List<WxworkFollowUserDto> followUserList;
    /**
     * 所属BC的信息
     */
    private String followBc;
    /**
     * 所属BC在企业微信里面的userid
     */
    private String followBcId;
    /**
     * 所属BC的名称
     */
    private String followBcName;
    /**
     * 所属的BC员工号
     */
    private String followBcCode;
    /**
     * 客户BC给客户的备注
     */
    private String remark;
    /**
     * 创建时间
     */
    private Date createDate;
    /**
     * 创建人
     */
    private String createUser;
    /**
     * 修改时间
     */
    private Date updateDate;
    /**
     * 修改人
     */
    private String updateUser;
    /**
     * 被绑定的时间
     */
    private Date bindTime;
  

    public String getExternalId() {
        return externalId;
    }

    public void setExternalId(String externalId) {
        this.externalId = externalId == null ? null : externalId.trim();
    }

    public String getCorpid() {
        return corpid;
    }

    public void setCorpid(String corpid) {
        this.corpid = corpid == null ? null : corpid.trim();
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand == null ? null : brand.trim();
    }
    
    public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}
	
	public String getMemberType() {
		return memberType;
	}

	public void setMemberType(String memberType) {
		this.memberType = memberType;
	}

	public String getWxExternalUserid() {
        return wxExternalUserid;
    }

    public void setWxExternalUserid(String wxExternalUserid) {
        this.wxExternalUserid = wxExternalUserid == null ? null : wxExternalUserid.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position == null ? null : position.trim();
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar == null ? null : avatar.trim();
    }

    public String getCorpName() {
        return corpName;
    }

    public void setCorpName(String corpName) {
        this.corpName = corpName == null ? null : corpName.trim();
    }

    public String getCorpFullName() {
        return corpFullName;
    }

    public void setCorpFullName(String corpFullName) {
        this.corpFullName = corpFullName == null ? null : corpFullName.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid == null ? null : unionid.trim();
    }

    public String getExternalProfile() {
        return externalProfile;
    }

    public void setExternalProfile(String externalProfile) {
        this.externalProfile = externalProfile == null ? null : externalProfile.trim();
    }

    public String getFollowUser() {
        return followUser;
    }

    public void setFollowUser(String followUser) {
        this.followUser = followUser == null ? null : followUser.trim();
    }
    
	public List<WxworkFollowUserDto> getFollowUserList() {
		return followUserList;
	}

	public void setFollowUserList(List<WxworkFollowUserDto> followUserList) {
		this.followUserList = followUserList;
	}

	public String getFollowBc() {
		if(followBcName != null && followBcId != null) {
			return followBcName + "(" + followBcId + ")";
		}
		return followBc;
	}
	
	public void setFollowBc(String followBc) {
		this.followBc = followBc;
	}

	public String getFollowBcId() {
		return followBcId;
	}

	public void setFollowBcId(String followBcId) {
		this.followBcId = followBcId;
	}
	
	public String getFollowBcName() {
		return followBcName;
	}

	public void setFollowBcName(String followBcName) {
		this.followBcName = followBcName;
	}

	public String getFollowBcCode() {
		return followBcCode;
	}

	public void setFollowBcCode(String followBcCode) {
		this.followBcCode = followBcCode;
	}
	
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser == null ? null : updateUser.trim();
    }

	public String getBindTime() {
		return DateFormatUtil.date2Str(bindTime, "yyyy-MM-dd HH:mm:ss");
	}

	public void setBindTime(Date bindTime) {
		this.bindTime = bindTime;
	}
    
    
}